Enum isotope_parser::prettyprint::BuildDoc [−]
Expand description
Either a Doc
or a pointer to a Doc
(D
)
Variants
Doc(Doc<'a, D, A>)
Implementations
The text t.to_string()
.
The given text must not contain line breaks.
The given text, which must not contain line breaks.
Methods from Deref<Target = Doc<'a, D, A>>
Writes a rendered document to a std::io::Write
object.
Writes a rendered document to a std::fmt::Write
object.
pub fn render_raw<W>(
&self,
width: usize,
out: &mut W
) -> Result<(), <W as Render>::Error> where
W: for<'b> RenderAnnotated<'b, A> + ?Sized,
pub fn render_raw<W>(
&self,
width: usize,
out: &mut W
) -> Result<(), <W as Render>::Error> where
W: for<'b> RenderAnnotated<'b, A> + ?Sized,
Writes a rendered document to a RenderAnnotated<A>
object.
Trait Implementations
impl<'a, D, A> Into<BuildDoc<'a, <D as DocAllocator<'a, A>>::Doc, A>> for DocBuilder<'a, D, A> where
D: DocAllocator<'a, A> + ?Sized,
impl<'a, D, A> Into<BuildDoc<'a, <D as DocAllocator<'a, A>>::Doc, A>> for DocBuilder<'a, D, A> where
D: DocAllocator<'a, A> + ?Sized,
pub fn into(self) -> BuildDoc<'a, <D as DocAllocator<'a, A>>::Doc, A>
pub fn into(self) -> BuildDoc<'a, <D as DocAllocator<'a, A>>::Doc, A>
Performs the conversion.
Auto Trait Implementations
impl<'a, D, A> RefUnwindSafe for BuildDoc<'a, D, A> where
A: RefUnwindSafe,
D: RefUnwindSafe,
<D as DocPtr<'a, A>>::ColumnFn: RefUnwindSafe,
impl<'a, D, A> Send for BuildDoc<'a, D, A> where
A: Send,
D: Send,
<D as DocPtr<'a, A>>::ColumnFn: Send,
impl<'a, D, A> Sync for BuildDoc<'a, D, A> where
A: Sync,
D: Sync,
<D as DocPtr<'a, A>>::ColumnFn: Sync,
impl<'a, D, A> Unpin for BuildDoc<'a, D, A> where
A: Unpin,
D: Unpin,
<D as DocPtr<'a, A>>::ColumnFn: Unpin,
impl<'a, D, A> UnwindSafe for BuildDoc<'a, D, A> where
A: UnwindSafe,
D: UnwindSafe,
<D as DocPtr<'a, A>>::ColumnFn: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more